package com.tevintao.marketingsystem.commen;

import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;

/**
 * Created by taotianwen on 2016/12/28.
 */
public class RequestManager {
    private static RequestManager ourInstance = new RequestManager();

    public static RequestManager getInstance() {
        return ourInstance;
    }

    private RequestManager() {
    }

    private RequestQueue mQueue = null;


    public void addRequest(Request request) {
        if (null == mQueue) {
            mQueue = Volley.newRequestQueue(CommenApplication.getApplication());
        }

        mQueue.add(request);
    }
}
